<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
 <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
</head>
<body>
<button>add</button>
<script type="text/javascript">
$(function(){
	$("button").on("click",function(){
		var user={name:"weir",age:123,birth:'1990-12-12'};
		$.ajax({
		type:"POST",
		url:"http://localhost:8088/mvcDemo2/test5",
		data:JSON.stringify(user),
		contentType:"application/json",	
		}).done(function(us){
			alert(msg);
		})
	
	});

});
</script>

</body>
</html>